<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxCooking Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classPxCooking.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classPxCooking-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">PxCooking Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__cooking.html">Cooking</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="PxCooking_8h_source.html">PxCooking.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acf1f0cfa4c76ccbe42e84af17a90fb3e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#acf1f0cfa4c76ccbe42e84af17a90fb3e">release</a> ()=0</td></tr>
<tr class="memdesc:acf1f0cfa4c76ccbe42e84af17a90fb3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes this instance of the interface.  <a href="#acf1f0cfa4c76ccbe42e84af17a90fb3e">More...</a><br /></td></tr>
<tr class="separator:acf1f0cfa4c76ccbe42e84af17a90fb3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afebe112057bd03660dd78dee384d5321"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#afebe112057bd03660dd78dee384d5321">setParams</a> (const <a class="el" href="structPxCookingParams.html">PxCookingParams</a> &amp;params)=0</td></tr>
<tr class="memdesc:afebe112057bd03660dd78dee384d5321"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets cooking parameters.  <a href="#afebe112057bd03660dd78dee384d5321">More...</a><br /></td></tr>
<tr class="separator:afebe112057bd03660dd78dee384d5321"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83607708fd1cb2f58a3d758a558f5b28"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="structPxCookingParams.html">PxCookingParams</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a83607708fd1cb2f58a3d758a558f5b28">getParams</a> () const =0</td></tr>
<tr class="memdesc:a83607708fd1cb2f58a3d758a558f5b28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets cooking parameters.  <a href="#a83607708fd1cb2f58a3d758a558f5b28">More...</a><br /></td></tr>
<tr class="separator:a83607708fd1cb2f58a3d758a558f5b28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82e0864b92d51d409f3134cc8f740102"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a82e0864b92d51d409f3134cc8f740102">platformMismatch</a> () const =0</td></tr>
<tr class="memdesc:a82e0864b92d51d409f3134cc8f740102"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks endianness is the same between cooking &amp; target platforms.  <a href="#a82e0864b92d51d409f3134cc8f740102">More...</a><br /></td></tr>
<tr class="separator:a82e0864b92d51d409f3134cc8f740102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29bea4d23794e1521a0a6cbfa8e62464"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a29bea4d23794e1521a0a6cbfa8e62464">cookTriangleMesh</a> (const <a class="el" href="classPxTriangleMeshDesc.html">PxTriangleMeshDesc</a> &amp;desc, <a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;stream, <a class="el" href="structPxTriangleMeshCookingResult.html#abe8e2312c47cc522a546c34ea337fb64">PxTriangleMeshCookingResult::Enum</a> *condition=NULL) const =0</td></tr>
<tr class="memdesc:a29bea4d23794e1521a0a6cbfa8e62464"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks a triangle mesh. The results are written to the stream.  <a href="#a29bea4d23794e1521a0a6cbfa8e62464">More...</a><br /></td></tr>
<tr class="separator:a29bea4d23794e1521a0a6cbfa8e62464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a227e676ba5b15b9cf292fd457427b13b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classPxTriangleMesh.html">PxTriangleMesh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a227e676ba5b15b9cf292fd457427b13b">createTriangleMesh</a> (const <a class="el" href="classPxTriangleMeshDesc.html">PxTriangleMeshDesc</a> &amp;desc, <a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;insertionCallback, <a class="el" href="structPxTriangleMeshCookingResult.html#abe8e2312c47cc522a546c34ea337fb64">PxTriangleMeshCookingResult::Enum</a> *condition=NULL) const =0</td></tr>
<tr class="memdesc:a227e676ba5b15b9cf292fd457427b13b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks and creates a triangle mesh and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>.  <a href="#a227e676ba5b15b9cf292fd457427b13b">More...</a><br /></td></tr>
<tr class="separator:a227e676ba5b15b9cf292fd457427b13b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afca9fe3e3bb8b4943d35475f80f37d2e"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#afca9fe3e3bb8b4943d35475f80f37d2e">validateTriangleMesh</a> (const <a class="el" href="classPxTriangleMeshDesc.html">PxTriangleMeshDesc</a> &amp;desc) const =0</td></tr>
<tr class="memdesc:afca9fe3e3bb8b4943d35475f80f37d2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found.  <a href="#afca9fe3e3bb8b4943d35475f80f37d2e">More...</a><br /></td></tr>
<tr class="separator:afca9fe3e3bb8b4943d35475f80f37d2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade8e845a8a4253292aed0ef93177ffa1"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#ade8e845a8a4253292aed0ef93177ffa1">cookConvexMesh</a> (const <a class="el" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a> &amp;desc, <a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;stream, <a class="el" href="structPxConvexMeshCookingResult.html#ac1c7b1cbfc80b0af00bec95faf1ebf42">PxConvexMeshCookingResult::Enum</a> *condition=NULL) const =0</td></tr>
<tr class="memdesc:ade8e845a8a4253292aed0ef93177ffa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks a convex mesh. The results are written to the stream.  <a href="#ade8e845a8a4253292aed0ef93177ffa1">More...</a><br /></td></tr>
<tr class="separator:ade8e845a8a4253292aed0ef93177ffa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a70f14b0fd0f449ea145dcd27b0c2f8"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classPxConvexMesh.html">PxConvexMesh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a0a70f14b0fd0f449ea145dcd27b0c2f8">createConvexMesh</a> (const <a class="el" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a> &amp;desc, <a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;insertionCallback, <a class="el" href="structPxConvexMeshCookingResult.html#ac1c7b1cbfc80b0af00bec95faf1ebf42">PxConvexMeshCookingResult::Enum</a> *condition=NULL) const =0</td></tr>
<tr class="memdesc:a0a70f14b0fd0f449ea145dcd27b0c2f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks and creates a convex mesh and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>.  <a href="#a0a70f14b0fd0f449ea145dcd27b0c2f8">More...</a><br /></td></tr>
<tr class="separator:a0a70f14b0fd0f449ea145dcd27b0c2f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea8a3c270cc6db602ad250c82c1225bc"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#aea8a3c270cc6db602ad250c82c1225bc">validateConvexMesh</a> (const <a class="el" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a> &amp;desc) const =0</td></tr>
<tr class="memdesc:aea8a3c270cc6db602ad250c82c1225bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verifies if the convex mesh is valid. Prints an error message for each inconsistency found.  <a href="#aea8a3c270cc6db602ad250c82c1225bc">More...</a><br /></td></tr>
<tr class="separator:aea8a3c270cc6db602ad250c82c1225bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75c77a6b39563de7b2d3736e0aaac85b"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a75c77a6b39563de7b2d3736e0aaac85b">computeHullPolygons</a> (const <a class="el" href="classPxSimpleTriangleMesh.html">PxSimpleTriangleMesh</a> &amp;<a class="el" href="PxGeometryHelpers_8h.html#ab9e855014d75bbbbab05fb126b12214c">mesh</a>, <a class="el" href="classPxAllocatorCallback.html">PxAllocatorCallback</a> &amp;inCallback, <a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;nbVerts, <a class="el" href="classPxVec3.html">PxVec3</a> *&amp;vertices, <a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;nbIndices, <a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> *&amp;indices, <a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;nbPolygons, <a class="el" href="structPxHullPolygon.html">PxHullPolygon</a> *&amp;hullPolygons) const =0</td></tr>
<tr class="memdesc:a75c77a6b39563de7b2d3736e0aaac85b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computed hull polygons from given vertices and triangles. Polygons are needed for <a class="el" href="classPxConvexMeshDesc.html" title="Descriptor class for PxConvexMesh. ">PxConvexMeshDesc</a> rather than triangles.  <a href="#a75c77a6b39563de7b2d3736e0aaac85b">More...</a><br /></td></tr>
<tr class="separator:a75c77a6b39563de7b2d3736e0aaac85b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf4f0fe5c9a709cde84338c5bdf7cde4"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#abf4f0fe5c9a709cde84338c5bdf7cde4">cookHeightField</a> (const <a class="el" href="classPxHeightFieldDesc.html">PxHeightFieldDesc</a> &amp;desc, <a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;stream) const =0</td></tr>
<tr class="memdesc:abf4f0fe5c9a709cde84338c5bdf7cde4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks a heightfield. The results are written to the stream.  <a href="#abf4f0fe5c9a709cde84338c5bdf7cde4">More...</a><br /></td></tr>
<tr class="separator:abf4f0fe5c9a709cde84338c5bdf7cde4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a3d0ec6145be91dd6707535724d8ffb"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classPxHeightField.html">PxHeightField</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a0a3d0ec6145be91dd6707535724d8ffb">createHeightField</a> (const <a class="el" href="classPxHeightFieldDesc.html">PxHeightFieldDesc</a> &amp;desc, <a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;insertionCallback) const =0</td></tr>
<tr class="memdesc:a0a3d0ec6145be91dd6707535724d8ffb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks and creates a heightfield mesh and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>.  <a href="#a0a3d0ec6145be91dd6707535724d8ffb">More...</a><br /></td></tr>
<tr class="separator:a0a3d0ec6145be91dd6707535724d8ffb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a752ac4ca176e46b0b73c40c6bc4a6e82"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a752ac4ca176e46b0b73c40c6bc4a6e82">cookBVHStructure</a> (const <a class="el" href="classPxBVHStructureDesc.html">PxBVHStructureDesc</a> &amp;desc, <a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;stream) const =0</td></tr>
<tr class="memdesc:a752ac4ca176e46b0b73c40c6bc4a6e82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks a bounding volume hierarchy structure. The results are written to the stream.  <a href="#a752ac4ca176e46b0b73c40c6bc4a6e82">More...</a><br /></td></tr>
<tr class="separator:a752ac4ca176e46b0b73c40c6bc4a6e82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01b34335201c811f44860350c32dcb26"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classPxBVHStructure.html">PxBVHStructure</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a01b34335201c811f44860350c32dcb26">createBVHStructure</a> (const <a class="el" href="classPxBVHStructureDesc.html">PxBVHStructureDesc</a> &amp;desc, <a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;insertionCallback) const =0</td></tr>
<tr class="memdesc:a01b34335201c811f44860350c32dcb26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cooks and creates a bounding volume hierarchy structure and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>.  <a href="#a01b34335201c811f44860350c32dcb26">More...</a><br /></td></tr>
<tr class="separator:a01b34335201c811f44860350c32dcb26"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a22a1e6a4a68af0bb0f6568bb59108938"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxCooking.html#a22a1e6a4a68af0bb0f6568bb59108938">~PxCooking</a> ()</td></tr>
<tr class="separator:a22a1e6a4a68af0bb0f6568bb59108938"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a22a1e6a4a68af0bb0f6568bb59108938"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22a1e6a4a68af0bb0f6568bb59108938">&#9670;&nbsp;</a></span>~PxCooking()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual PxCooking::~PxCooking </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a75c77a6b39563de7b2d3736e0aaac85b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75c77a6b39563de7b2d3736e0aaac85b">&#9670;&nbsp;</a></span>computeHullPolygons()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::computeHullPolygons </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxSimpleTriangleMesh.html">PxSimpleTriangleMesh</a> &amp;&#160;</td>
          <td class="paramname"><em>mesh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxAllocatorCallback.html">PxAllocatorCallback</a> &amp;&#160;</td>
          <td class="paramname"><em>inCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;&#160;</td>
          <td class="paramname"><em>nbVerts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxVec3.html">PxVec3</a> *&amp;&#160;</td>
          <td class="paramname"><em>vertices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;&#160;</td>
          <td class="paramname"><em>nbIndices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> *&amp;&#160;</td>
          <td class="paramname"><em>indices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;&#160;</td>
          <td class="paramname"><em>nbPolygons</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxHullPolygon.html">PxHullPolygon</a> *&amp;&#160;</td>
          <td class="paramname"><em>hullPolygons</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computed hull polygons from given vertices and triangles. Polygons are needed for <a class="el" href="classPxConvexMeshDesc.html" title="Descriptor class for PxConvexMesh. ">PxConvexMeshDesc</a> rather than triangles. </p>
<p>Please note that the resulting polygons may have different number of vertices. Some vertices may be removed. The output vertices, indices and polygons must be used to construct a hull.</p>
<p>The provided <a class="el" href="classPxAllocatorCallback.html" title="Abstract base class for an application defined memory allocator that can be used by the Nv library...">PxAllocatorCallback</a> does allocate the out array's. It is the user responsibility to deallocated those array's.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mesh</td><td>Simple triangle mesh containing vertices and triangles used to compute polygons. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">inCallback</td><td>Memory allocator for out array allocations. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nbVerts</td><td>Number of vertices used by polygons. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">vertices</td><td>Vertices array used by polygons. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nbIndices</td><td>Number of indices used by polygons. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">indices</td><td>Indices array used by polygons. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nbPolygons</td><td>Number of created polygons. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">hullPolygons</td><td>Polygons array. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#ade8e845a8a4253292aed0ef93177ffa1" title="Cooks a convex mesh. The results are written to the stream. ">cookConvexMesh()</a> <a class="el" href="group__cooking.html#ga36d3375ae49e62c3842c3fbe0c620651" title="collection of set bits defined in PxConvexFlag. ">PxConvexFlags</a> <a class="el" href="classPxConvexMeshDesc.html" title="Descriptor class for PxConvexMesh. ">PxConvexMeshDesc</a> <a class="el" href="classPxSimpleTriangleMesh.html" title="A structure describing a triangle mesh. ">PxSimpleTriangleMesh</a> </dd></dl>

</div>
</div>
<a id="a752ac4ca176e46b0b73c40c6bc4a6e82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a752ac4ca176e46b0b73c40c6bc4a6e82">&#9670;&nbsp;</a></span>cookBVHStructure()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::cookBVHStructure </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxBVHStructureDesc.html">PxBVHStructureDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks a bounding volume hierarchy structure. The results are written to the stream. </p>
<p><a class="el" href="classPxCooking.html#a752ac4ca176e46b0b73c40c6bc4a6e82" title="Cooks a bounding volume hierarchy structure. The results are written to the stream. ">cookBVHStructure()</a> allows a BVH structure description to be cooked into a binary stream suitable for loading and performing BVH detection at runtime.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The BVH structure descriptor. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>User stream to output the cooked data. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxBVHStructure.html" title="Class representing the bounding volume hierarchy structure. ">PxBVHStructure</a> <a class="el" href="classPxRigidActorExt.html#aa9a87cc3fb664926a444280bfb1ebe43" title="Gets a list of bounds based on shapes in rigid actor. This list can be used to cook/create bounding v...">PxRigidActorExt::getRigidActorShapeLocalBoundsList</a> </dd></dl>

</div>
</div>
<a id="ade8e845a8a4253292aed0ef93177ffa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade8e845a8a4253292aed0ef93177ffa1">&#9670;&nbsp;</a></span>cookConvexMesh()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::cookConvexMesh </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxConvexMeshCookingResult.html#ac1c7b1cbfc80b0af00bec95faf1ebf42">PxConvexMeshCookingResult::Enum</a> *&#160;</td>
          <td class="paramname"><em>condition</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks a convex mesh. The results are written to the stream. </p>
<p>To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection.</p>
<p><a class="el" href="classPxCooking.html#ade8e845a8a4253292aed0ef93177ffa1" title="Cooks a convex mesh. The results are written to the stream. ">cookConvexMesh()</a> allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime.</p>
<dl class="section note"><dt>Note</dt><dd>The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 255. </dd>
<dd>
If those limits are exceeded in either the user-provided data or the final cooked mesh, an error is reported.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The convex mesh descriptor to read the mesh from. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>User stream to output the cooked data. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">condition</td><td>Result from convex mesh cooking. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#a29bea4d23794e1521a0a6cbfa8e62464" title="Cooks a triangle mesh. The results are written to the stream. ">cookTriangleMesh()</a> <a class="el" href="classPxCooking.html#afebe112057bd03660dd78dee384d5321" title="Sets cooking parameters. ">setParams()</a> <a class="el" href="structPxConvexMeshCookingResult.html#ac1c7b1cbfc80b0af00bec95faf1ebf42">PxConvexMeshCookingResult::Enum</a> </dd></dl>

</div>
</div>
<a id="abf4f0fe5c9a709cde84338c5bdf7cde4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf4f0fe5c9a709cde84338c5bdf7cde4">&#9670;&nbsp;</a></span>cookHeightField()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::cookHeightField </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxHeightFieldDesc.html">PxHeightFieldDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks a heightfield. The results are written to the stream. </p>
<p>To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data.</p>
<p><a class="el" href="classPxCooking.html#abf4f0fe5c9a709cde84338c5bdf7cde4" title="Cooks a heightfield. The results are written to the stream. ">cookHeightField()</a> allows a heightfield description to be cooked into a binary stream suitable for loading and performing collision detection at runtime.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The heightfield descriptor to read the HF from. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>User stream to output the cooked data. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxPhysics.html#a1806546c22306e8d44b7ff7719fbcc99" title="Creates a heightfield object from previously cooked stream. ">PxPhysics.createHeightField()</a> </dd></dl>

</div>
</div>
<a id="a29bea4d23794e1521a0a6cbfa8e62464"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29bea4d23794e1521a0a6cbfa8e62464">&#9670;&nbsp;</a></span>cookTriangleMesh()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::cookTriangleMesh </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxTriangleMeshDesc.html">PxTriangleMeshDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxTriangleMeshCookingResult.html#abe8e2312c47cc522a546c34ea337fb64">PxTriangleMeshCookingResult::Enum</a> *&#160;</td>
          <td class="paramname"><em>condition</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks a triangle mesh. The results are written to the stream. </p>
<p>To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection.</p>
<p><a class="el" href="classPxCooking.html#a29bea4d23794e1521a0a6cbfa8e62464" title="Cooks a triangle mesh. The results are written to the stream. ">cookTriangleMesh()</a> allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The triangle mesh descriptor to read the mesh from. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>User stream to output the cooked data. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">condition</td><td>Result from triangle mesh cooking. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#ade8e845a8a4253292aed0ef93177ffa1" title="Cooks a convex mesh. The results are written to the stream. ">cookConvexMesh()</a> <a class="el" href="classPxCooking.html#afebe112057bd03660dd78dee384d5321" title="Sets cooking parameters. ">setParams()</a> <a class="el" href="classPxPhysics.html#a29dcbbe128cef11eaf4ce5696c216dfd" title="Creates a triangle mesh object. ">PxPhysics.createTriangleMesh()</a> <a class="el" href="structPxTriangleMeshCookingResult.html#abe8e2312c47cc522a546c34ea337fb64">PxTriangleMeshCookingResult::Enum</a> </dd></dl>

</div>
</div>
<a id="a01b34335201c811f44860350c32dcb26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01b34335201c811f44860350c32dcb26">&#9670;&nbsp;</a></span>createBVHStructure()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classPxBVHStructure.html">PxBVHStructure</a>* PxCooking::createBVHStructure </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxBVHStructureDesc.html">PxBVHStructureDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;&#160;</td>
          <td class="paramname"><em>insertionCallback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks and creates a bounding volume hierarchy structure and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </p>
<dl class="section note"><dt>Note</dt><dd>This method does the same as cookBVHStructure, but the produced BVH structure is not stored into a stream but is directly inserted in <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. Use this method if you are unable to cook offline.</dd>
<dd>
<a class="el" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...">PxPhysicsInsertionCallback</a> can be obtained through <a class="el" href="classPxPhysics.html#a7a4588fd79b87766cb81fae3ddd4f074" title="Gets PxPhysics object insertion interface. ">PxPhysics::getPhysicsInsertionCallback()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The BVH structure descriptor. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">insertionCallback</td><td>The insertion interface from <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classPxBVHStructure.html" title="Class representing the bounding volume hierarchy structure. ">PxBVHStructure</a> pointer on success</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#a752ac4ca176e46b0b73c40c6bc4a6e82" title="Cooks a bounding volume hierarchy structure. The results are written to the stream. ">cookBVHStructure()</a> <a class="el" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...">PxPhysicsInsertionCallback</a> </dd></dl>

</div>
</div>
<a id="a0a70f14b0fd0f449ea145dcd27b0c2f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a70f14b0fd0f449ea145dcd27b0c2f8">&#9670;&nbsp;</a></span>createConvexMesh()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classPxConvexMesh.html">PxConvexMesh</a>* PxCooking::createConvexMesh </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;&#160;</td>
          <td class="paramname"><em>insertionCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxConvexMeshCookingResult.html#ac1c7b1cbfc80b0af00bec95faf1ebf42">PxConvexMeshCookingResult::Enum</a> *&#160;</td>
          <td class="paramname"><em>condition</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks and creates a convex mesh and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </p>
<dl class="section note"><dt>Note</dt><dd>This method does the same as cookConvexMesh, but the produced convex mesh is not stored into a stream but is directly inserted in <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. Use this method if you are unable to cook offline.</dd>
<dd>
<a class="el" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...">PxPhysicsInsertionCallback</a> can be obtained through <a class="el" href="classPxPhysics.html#a7a4588fd79b87766cb81fae3ddd4f074" title="Gets PxPhysics object insertion interface. ">PxPhysics::getPhysicsInsertionCallback()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The convex mesh descriptor to read the mesh from. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">insertionCallback</td><td>The insertion interface from <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">condition</td><td>Result from convex mesh cooking. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classPxConvexMesh.html" title="A convex mesh. ">PxConvexMesh</a> pointer on success</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#ade8e845a8a4253292aed0ef93177ffa1" title="Cooks a convex mesh. The results are written to the stream. ">cookConvexMesh()</a> <a class="el" href="classPxCooking.html#afebe112057bd03660dd78dee384d5321" title="Sets cooking parameters. ">setParams()</a> <a class="el" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...">PxPhysicsInsertionCallback</a> </dd></dl>

</div>
</div>
<a id="a0a3d0ec6145be91dd6707535724d8ffb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a3d0ec6145be91dd6707535724d8ffb">&#9670;&nbsp;</a></span>createHeightField()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classPxHeightField.html">PxHeightField</a>* PxCooking::createHeightField </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxHeightFieldDesc.html">PxHeightFieldDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;&#160;</td>
          <td class="paramname"><em>insertionCallback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks and creates a heightfield mesh and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The heightfield descriptor to read the HF from. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">insertionCallback</td><td>The insertion interface from <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classPxHeightField.html" title="A height field class. ">PxHeightField</a> pointer on success</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#ade8e845a8a4253292aed0ef93177ffa1" title="Cooks a convex mesh. The results are written to the stream. ">cookConvexMesh()</a> <a class="el" href="classPxCooking.html#afebe112057bd03660dd78dee384d5321" title="Sets cooking parameters. ">setParams()</a> <a class="el" href="classPxPhysics.html#a29dcbbe128cef11eaf4ce5696c216dfd" title="Creates a triangle mesh object. ">PxPhysics.createTriangleMesh()</a> <a class="el" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...">PxPhysicsInsertionCallback</a> </dd></dl>

</div>
</div>
<a id="a227e676ba5b15b9cf292fd457427b13b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a227e676ba5b15b9cf292fd457427b13b">&#9670;&nbsp;</a></span>createTriangleMesh()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classPxTriangleMesh.html">PxTriangleMesh</a>* PxCooking::createTriangleMesh </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxTriangleMeshDesc.html">PxTriangleMeshDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxPhysicsInsertionCallback.html">PxPhysicsInsertionCallback</a> &amp;&#160;</td>
          <td class="paramname"><em>insertionCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxTriangleMeshCookingResult.html#abe8e2312c47cc522a546c34ea337fb64">PxTriangleMeshCookingResult::Enum</a> *&#160;</td>
          <td class="paramname"><em>condition</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cooks and creates a triangle mesh and inserts it into <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </p>
<dl class="section note"><dt>Note</dt><dd><a class="el" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...">PxPhysicsInsertionCallback</a> can be obtained through <a class="el" href="classPxPhysics.html#a7a4588fd79b87766cb81fae3ddd4f074" title="Gets PxPhysics object insertion interface. ">PxPhysics::getPhysicsInsertionCallback()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The triangle mesh descriptor to read the mesh from. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">insertionCallback</td><td>The insertion interface from <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK. ">PxPhysics</a>. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">condition</td><td>Result from triangle mesh cooking. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classPxTriangleMesh.html" title="A triangle mesh, also called a &#39;polygon soup&#39;. ">PxTriangleMesh</a> pointer on success.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#a29bea4d23794e1521a0a6cbfa8e62464" title="Cooks a triangle mesh. The results are written to the stream. ">cookTriangleMesh()</a> <a class="el" href="classPxCooking.html#afebe112057bd03660dd78dee384d5321" title="Sets cooking parameters. ">setParams()</a> <a class="el" href="classPxPhysics.html#a29dcbbe128cef11eaf4ce5696c216dfd" title="Creates a triangle mesh object. ">PxPhysics.createTriangleMesh()</a> <a class="el" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...">PxPhysicsInsertionCallback</a> </dd></dl>

</div>
</div>
<a id="a83607708fd1cb2f58a3d758a558f5b28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83607708fd1cb2f58a3d758a558f5b28">&#9670;&nbsp;</a></span>getParams()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="structPxCookingParams.html">PxCookingParams</a>&amp; PxCooking::getParams </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets cooking parameters. </p>
<dl class="section return"><dt>Returns</dt><dd>Current cooking parameters.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structPxCookingParams.html" title="Structure describing parameters affecting mesh cooking. ">PxCookingParams</a> <a class="el" href="classPxCooking.html#afebe112057bd03660dd78dee384d5321" title="Sets cooking parameters. ">setParams()</a> </dd></dl>

</div>
</div>
<a id="a82e0864b92d51d409f3134cc8f740102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82e0864b92d51d409f3134cc8f740102">&#9670;&nbsp;</a></span>platformMismatch()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::platformMismatch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks endianness is the same between cooking &amp; target platforms. </p>
<dl class="section return"><dt>Returns</dt><dd>True if there is and endian mismatch. </dd></dl>

</div>
</div>
<a id="acf1f0cfa4c76ccbe42e84af17a90fb3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf1f0cfa4c76ccbe42e84af17a90fb3e">&#9670;&nbsp;</a></span>release()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void PxCooking::release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Closes this instance of the interface. </p>
<p>This function should be called to cleanly shut down the Cooking library before application exit.</p>
<dl class="section note"><dt>Note</dt><dd>This function is required to be called to release foundation usage. </dd></dl>

</div>
</div>
<a id="afebe112057bd03660dd78dee384d5321"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afebe112057bd03660dd78dee384d5321">&#9670;&nbsp;</a></span>setParams()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void PxCooking::setParams </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPxCookingParams.html">PxCookingParams</a> &amp;&#160;</td>
          <td class="paramname"><em>params</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets cooking parameters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">params</td><td>Cooking parameters</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#a83607708fd1cb2f58a3d758a558f5b28" title="Gets cooking parameters. ">getParams()</a> </dd></dl>

</div>
</div>
<a id="aea8a3c270cc6db602ad250c82c1225bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea8a3c270cc6db602ad250c82c1225bc">&#9670;&nbsp;</a></span>validateConvexMesh()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::validateConvexMesh </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Verifies if the convex mesh is valid. Prints an error message for each inconsistency found. </p>
<p>The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided.</p>
<dl class="section note"><dt>Note</dt><dd>This function should be used if <a class="el" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a10a876ecefb45e1c7dbaec2afed5c3ad" title="Disables the convex mesh validation to speed-up hull creation. Please use separate validation functio...">PxConvexFlag::eDISABLE_MESH_VALIDATION</a> is planned to be used in release builds.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The convex mesh descriptor to read the mesh from.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if all the validity conditions hold, false otherwise.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#ade8e845a8a4253292aed0ef93177ffa1" title="Cooks a convex mesh. The results are written to the stream. ">cookConvexMesh()</a> </dd></dl>

</div>
</div>
<a id="afca9fe3e3bb8b4943d35475f80f37d2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afca9fe3e3bb8b4943d35475f80f37d2e">&#9670;&nbsp;</a></span>validateTriangleMesh()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxCooking::validateTriangleMesh </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxTriangleMeshDesc.html">PxTriangleMeshDesc</a> &amp;&#160;</td>
          <td class="paramname"><em>desc</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found. </p>
<p>The following conditions are true for a valid triangle mesh: 1. There are no duplicate vertices (within specified vertexWeldTolerance. See <a class="el" href="structPxCookingParams.html#a19bb7e28765df5c8ec1a86a45004c7b6" title="Mesh weld tolerance. If mesh welding is enabled, this controls the distance at which vertices are wel...">PxCookingParams::meshWeldTolerance</a>) 2. There are no large triangles (within specified <a class="el" href="classPxTolerancesScale.html" title="Class to define the scale at which simulation runs. Most simulation tolerances are calculated in term...">PxTolerancesScale</a>.)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">desc</td><td>The triangle mesh descriptor to read the mesh from.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if all the validity conditions hold, false otherwise.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxCooking.html#a29bea4d23794e1521a0a6cbfa8e62464" title="Cooks a triangle mesh. The results are written to the stream. ">cookTriangleMesh()</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="PxCooking_8h_source.html">PxCooking.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classPxCooking.html">PxCooking</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
